import request from '@/utils/request'
import { PRODUCE } from '@/config/baseUrl'

export function getFactoryList(data) {
  return request({
    url: PRODUCE + '/data/erpFactory/list',
    method: 'post',
    data
  })
}

//查询用户有权限的工厂数据信息
export function listPermitFactory() {
  return request({
    url: PRODUCE + '/data/workshop/getUserPermitFactoryDataInfos',
    method: 'get'
  })
}

//查询所有工厂-车间-产线-工序-工位信息
export function listAllFactorys() {
  return request({
    url: PRODUCE + '/data/workshop/listFactorys',
    method: 'get'
  })
}
